<%@ page import="com.dsj.entity.CustomerEntity" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String userlink = request.getContextPath() + "/pages/customer/userLoginPlease.jsp";
    String shoppingLink = request.getContextPath() + "/pages/customer/userLoginPlease.jsp";
    String orderlink = request.getContextPath() + "/pages/customer/userLoginPlease.jsp";
    CustomerEntity user = null;
    if (session.getAttribute("user")!= null) {  //判断会员是否登录
        user = (CustomerEntity) session.getAttribute("user");
        userlink = request.getContextPath() + "/pages/customer/userUpdate.jsp?name=" + user.getUserName();
        shoppingLink = request.getContextPath() + "/pages/cart/cartShow.jsp";
        orderlink = request.getContextPath() + "/OrderServlet?orderAction=orderAbstract";
    }
%>
<table style="height: 80px; width: 1024px; border: 1px solid #FFFFFF; text-align: center; background: url('/e24/images/systemImages/top.jpg')"
       cellspacing="0" cellpadding="0">
    <tr>
        <td>&nbsp;</td>
    </tr>
</table>
<table width="1024" border="0" align="center" cellpadding="0"
       cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF"
       bordercolordark="#819BBC"
       background="<%=request.getContextPath()%>/images/systemImages/fg_top03.jpg">
    <tr align="center" height="30">
        <td width="100"
            onMouseOver="this.style.backgroundImage='url(<%=request.getContextPath()%>/images/systemImages/topMenu.jpg)'"
            onMouseOut="this.style.backgroundImage=''"><a
                href="<%=request.getContextPath()%>/pages/product/main.jsp">首页</a></td>
        <td width="100"
            onMouseOver="this.style.backgroundImage='url(<%=request.getContextPath()%>/images/systemImages/topMenu.jpg)'"
            onMouseOut="this.style.backgroundImage=''"><a
                href="<%=request.getContextPath()%>/pages/product/showProductOriginal.jsp"
                class="a4">商城新品</a></td>
        <td width="100"
            onMouseOver="this.style.backgroundImage='url(<%=request.getContextPath()%>/images/systemImages/topMenu.jpg)'"
            onMouseOut="this.style.backgroundImage=''"><a
                href="<%=request.getContextPath()%>/pages/product/showProductsDiscount.jsp"
                class="a4">特价商品</a></td>
        <td width="100"
            onMouseOver="this.style.backgroundImage='url(<%=request.getContextPath()%>/images/systemImages/topMenu.jpg)'"
            onMouseOut="this.style.backgroundImage=''"><a
                href="<%=userlink%>" class="a4">用户修改</a></td>
        <td width="100"
            onMouseOver="this.style.backgroundImage='url(<%=request.getContextPath()%>/images/systemImages/topMenu.jpg)'"
            onMouseOut="this.style.backgroundImage=''"><a
                href="<%=shoppingLink%>" class="a4">购物车</a></td>
        <td width="100"
            onMouseOver="this.style.backgroundImage='url(<%=request.getContextPath()%>/images/systemImages/topMenu.jpg)'"
            onMouseOut="this.style.backgroundImage=''"><a
                href="<%=orderlink%>" class="a4">订单查看</a></td>
    </tr>
</table>